<?php
namespace Application\Model;

class Pendingmail
{	
	public $mail_id;
	public $subject;
    public $content;	
	public $to_mail;
	public $to_from;	
	public $status;
	public function exchangeArray($data)
	{	
		$this->mail_id 	 = (isset($data['mail_id']))    ? $data['mail_id'] 	: null;
        $this->subject 	 = (isset($data['subject']))    ? $data['subject'] 	: null;
		$this->content 	 = (isset($data['content']))    ? $data['content'] 	: null;  
		$this->to_mail 	 = (isset($data['to_mail']))    ? $data['to_mail'] 	: null;  
		$this->to_from 	 = (isset($data['to_from']))    ? $data['to_from'] 	: null;  
		$this->status  	 = (isset($data['status']))     ? $data['status']  	: null;
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}
?>